|
In computer programming, pull request is a methodology for submitting contribution to source code repository using distributed version control system. It is commonly used for open source projects as workflow for merging source changes from different sources into single code base. The contributor requests the project maintainer to pull his source code change, hence the name pull request. The maintainer has to merge pull request for contribution to become part of source base. ==Common workflow== Most open source projects using distributed version control system share a common workflow for collaboration. The project has a central repository that is considered official repository. Central repository is managed by project maintainers. Developer clones this repository to create an identical local copy of code base. Source code changes in central repositry are periodically synchronized with local repository. Developer creates a new branch in his local repository and modifies source code on that branch. Once the development is done the change needs to be integrated into central repository. The developer creates a pull request to notify maintainers of his change. Some hosting services like GitHub, BitBucket and GitLab also provide commenting thread associated with each pull request. This allows for focused discussion of code changes. Submitted pull requests are visible to anyone with repository access. They are not part of repository code base until they are processed. Pull request can be accepted or rejected by maintainers. The reasons for rejection include faulty implementation, coding standards voliation, poor code quality, or breaching of project scope (feature creep). The developer is then instructed to improve the code before once again submitting the pull request. Once the pull request is reviewed approved, it is merged into repository. Depending on established workflow, the code will need to be tested before being included into official release. Therefore some projects will contain a special branch for merging untested pull requests. 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Pull request」の詳細全文を読む スポンサード リンク
|